package com.suyl.annotationdemo.core.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author : suyl
 * @version : v1.0.0
 * @date : 2020/3/20 16:45
 * @descr : 定义属性配置;在配置文件只给你获取
 */
@Component
@Data
@ToString
@ConfigurationProperties(prefix = "suyl.datasource")
public class PropertiesConfig {
    private String url;
    private String username;
    private String password;
}
